package com.letoken.platform.repo.mall.dao;

import com.letoken.platform.repo.dao.SpiceBaseMapper;
import com.letoken.platform.repo.mall.po.AppMallAmbassador;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

/**
 * <p>
 * 星推官用户 Mapper 接口
 * </p>
 *
 * @author author
 * @since 2023-06-05
 */
public interface AppMallAmbassadorExtendMapper extends SpiceBaseMapper<AppMallAmbassador> {


    @Select("select 1 from app_mall_ambassador where user_id = #{userId} limit 1 ")
    Integer ambassadorExists(@Param("userId") Integer userId);
}
